/**

 * @author *琴
 * @mailbox 1570149578@qq.com
 * @company  四川英瑞世博电子商务有限公司
 * @date 2020-06-08 14:10
 * @http  https://********

 */
export default {
  data () {
    return {
    }
  },

  computed: {
    // 已选规格
    buildSkuName () {
      return (features) => {
        if (typeof features === 'string') {
          features = JSON.parse(features)
        }
        let sku_name = []
        features.forEach((feature) => {
          sku_name.push(feature.feature_value_name)
          return sku_name
        })
        return sku_name.join(' ')
      }
    }
  }
}
